﻿using Ledict.ConditionExtract.DAL;
using Ledict.ConditionExtract.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ledict.ConditionExtract.BLL
{
    public class SYS_SiftBdSynBLL
    {
        SYS_SiftBdSynDAL ssddal = new SYS_SiftBdSynDAL();

        /// <summary>
        /// 增加一条数据
        /// </summary>
        public bool Add(SYS_SiftBdSyn model)
        {
            return ssddal.Add(model);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public bool Delete(string sbID)
        {
            return ssddal.Delete(sbID);
        }

        /// <summary>
        /// 获取同义词表数据
        /// </summary>
        /// <param name="ccid">节点信息</param>
        /// <returns></returns>
        public DataTable GetSiftBdSyn()
        {
            return ssddal.GetSiftBdSyn();
        }

        /// <summary>
        /// 获取同义词表数据
        /// </summary>
        /// <param name="ccid">节点信息</param>
        /// <returns></returns>
        public DataTable GetRuleWord(string gzc, string tyc)
        {
            return ssddal.GetRuleWord(gzc, tyc);
        }

        /// <summary>
        /// 获取同义词表数据
        /// </summary>
        /// <param name="ccid">节点信息</param>
        /// <returns></returns>
        public DataTable GetRuleWordNew(string gzc, string tyc)
        {
            return ssddal.GetRuleWordNew(gzc, tyc);
        }

        /// <summary>
        /// 获取同义词表数据(规则词)
        /// </summary>
        /// <param name="ccid">节点信息</param>
        /// <returns></returns>
        public DataTable GetRuleWordByGZC(string gzc)
        {
            return ssddal.GetRuleWordByGZC(gzc);
        }
    }
}
